package com.zjitc.serviceedu.mapper;

import com.zjitc.serviceedu.entity.EduChapter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author 赵诚挚
 * @since 2024-09-20
 */

public interface EduChapterMapper extends BaseMapper<EduChapter> {

    @Delete("DELETE FROM edu_chapter WHERE course_id = #{courseId}")
    int deleteByCourseId(Long courseId);
}
